<body>
	<div class="subnav">
		<div class="content-menu ib-a blue line-x">
			<a class="on" href='/Role/'><em>成员管理</em></a><span>|</span><a
				href='/Role/'><em>角色管理</em></a>
		</div>
	</div>
	<div class="pad_10">
		<div class="table-list">
			<form name="myform" action="/Role/listorder/" method="post">
				<table width="100%" cellspacing="0">
					<thead>
						<tr>
							<th width="10%">序号</th>
							<th width="10%" align="left">用户名</th>
							<th width="10%" align="left">所属角色</th>
							<th width="10%" align="left">最后登录IP</th>
							<th width="20%" align="left">最后登录时间</th>
							<th width="15%" align="left">E-mail</th>
							<th width="10%">真实姓名</th>
							<th width="15%">管理操作</th>
						</tr>
					</thead>
					<tbody>
						<?php
						if(!empty($list)){
						  foreach ($list as $val) { 
						?>
						<tr>
							<td width="10%" align="center">
								<?php echo $val['Admin']['uid'] ?>
							</td>
							<td width="10%">
								<?php echo $val['Admin']['username'] ?>
							</td>
							<td width="10%">
								<?php echo $val['Admin']['rolename'] ?>
							</td>
							<td width="10%">
								<?php echo $val['Admin']['lastloginip'] ?>
							</td>
							<td width="20%">
								<?php echo $val['Admin']['lastlogintime'] ?>
							</td>
							<td width="15%">
								<?php echo $val['Admin']['email'] ?>
							</td>
							<td width="10%" align="center">
								<?php echo $val['Admin']['realname'] ?>
							</td>
							<td width="15%" align="center"><a href="javascript:;"
								onclick="edit(<?php echo $val['Admin']['uid'] ?>)">修改</a> | <?php if ($val['Admin']['uid']!=1){ ?>
								<a href="javascript:;"
								onclick="delete_admin(<?php echo $val['Admin']['uid'] ?>)">删除</a>
								<?php } else { ?> <font color="#cccccc">删除</font> <?php } ?></td>
						</tr>
						<?php } } ?>
					</tbody>
				</table>
				<div id="pages"><?php echo $this->Page->show($perpage, $total, $curpage, 10, "/Role/member/$roleid/", 2); ?></div>
			</form>
		</div>
	</div>
</body>